# Maintainer: Stacy Harper <contact@stacyharper.net>
pkgname=diskonaut
pkgver=0.11.0
pkgrel=0
pkgdesc="Terminal disk space navigator"
url="https://github.com/imsnif/diskonaut"
license="MIT"
arch="all !aarch64 !armhf !armv7 !s390x !riscv64" # dont pass tests or limited by rust/cargo
makedepends="cargo"
source="$pkgname-$pkgver.tar.gz::https://github.com/imsnif/diskonaut/archive/refs/tags/$pkgver.tar.gz"

prepare() {
	default_prepare
	cargo fetch --locked
}

build() {
	cargo build --release --frozen
}

check() {
	cargo test --frozen
}

package() {
	install -Dm755 target/release/diskonaut "$pkgdir"/usr/bin/diskonaut
}

sha512sums="
c682f40e9a0592214826beba17a8b875a80a0a258e503fbcc821548fa41b998133cf30e020abffddc4775abb37e1df267669c7e4b3114fe0c4532b9a48972768  diskonaut-0.11.0.tar.gz
"
